package net.y2t72.microblog.biz.impl;

import net.y2t72.microblog.biz.BuddyBiz;
import net.y2t72.microblog.dao.BuddyDao;
import net.y2t72.microblog.dao.impl.BuddyDaoImpl;

/**
 * 好友关系表业务逻辑实现类
 * @author Administrator
 *
 */

public class BuddyBizImpl implements BuddyBiz {

	BuddyDao bd = new BuddyDaoImpl();
	
	/**
	 * 根据登录用户的ID查询被多少人关注
	 * @param id 
	 * @return
	 * @author dp
	 */
	public int getBuddyNumber1(int id){
		return bd.getBuddyNumber1(id);
	}
	
	/**
	 * 根据登录用户的ID查询关注多少人
	 * @param id
	 * @return
	 * @author dp
	 */
	public int getBuddyNumber2(int id){
		return bd.getBuddyNumber2(id);
	}
}
